<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>9-Date返回毫秒数</title>
	</head>
	<body>
		<script type="text/javascript">
			//返回的是距离1970-1-1之间的毫秒数
			//1s= 1000ms
			var date = new Date();
			console.log('毫秒数1::'+date.valueOf());
			console.log('毫秒数2::'+date.getTime());
			var date1 = + new Date();
			console.log('毫秒数3::'+date1);
			
			console.log('毫秒数4::'+Date.now());
			
		</script>
	</body>
</html>
